﻿/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
	// Define changes to default configuration here. For example:
	// config.language = 'br';
	// config.uiColor = '#AADC6E';
        config.identClasses = ['rteindent1','rteindent2','rteindent3','rteindent4'];
        
        config.identClasses = ['rteleft','rtecenter','rteright','rtejustify'];
        
        config.resize_minWidth = 450;
        
        config.protectedSource.push(/<\?(\s\S)*?\?>/g);
        config.extraPlugin = '';
        //if(Drupal.ckeditorCompareVersion('3.1')){
        //    config.extraPlugins +=
        //}
        
        config.language = "pt-br";
        
        config.extraPlugins += "youtube";
        
        CKEDITOR.config.toolbar = [
                    ["Bold","Italic","Underline","StrikeThrough","-","Undo","Redo","-","Cut",
                        "Copy","Paste","Find","Replace","-",
                        "Outdent","Indent","NumberedList","BulletedList"],
                    ["-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock"],
                    ["Image","YouTube","Table","-","Link","TextColor","BGColor","Format","Font","FontSize"],
        ];
        
        CKEDITOR.config.removePlugins = "elementspath";
        CKEDITOR.config.resize_enabled = false;
        
        config.filebrowserBrowseUrl = '../js/ckfinder/ckfinder.html',
        config.filebrowserImageBrowseUrl = '../js/ckfinder/ckfinder.html?type=Images',
        config.filebrowserFlashBrowseUrl = '../js/ckfinder/ckfinder.html?type=Flash',
        config.filebrowserUploadUrl = '../js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
        config.filebrowserImageUploadUrl = '../js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
        config.filebrowserFlashUploadUrl = '../js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
        
        
        
        //config.extraPlugins += (config.extraPlugins ? '.mediaembed' : 'mediaembed');
        //CKEDITOR.plugins.addExternal('mediaembed', settings.ckeditor.module_path + '/plugins/mediaembed/');
};
    